#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
#include<assert.h>
int my_strcmp(const char* p1, const char* p2)
{
	assert(p1 != NULL && p2 != NULL);
	while (*p1 == *p2)
	{
		if (*p1 == 0)
			return 0;
		p1++;
		p2++;
	}
	if (*p1 > *p2)
		return 1;
	else
		return -1;
}
int main()
{
	char a[] = "abcd";
	char b[] = "abcde";
	printf("%d\n", my_strcmp(a, b));
	printf("%d\n", strcmp(a, b));
	return 0;
}